fix: functional induction: preseve order of cases better (#3762)

by passing an explicit array of metavariable around, instead of relying
on `getMVarsNoDelayed`, which may return them in unexpected order.
5 files changed