Fix serious bug in reparent1 routine.

Caused some expressions to have exponential time
analysis. Caught by regression test churn-01.flx.
Reduced time of inliner from 2000 seconds to less than 1
on that test.

Also, begin to prepare for monomorphisation of inliner.