Add bodyParams function and Eq, Ord instances for Nesting.
Fix Repeats handling in inputsToExp slightly.

It is still quite broken for most cases.
Change tryFusion to use a proper monad rather than Maybe hackery.

This will make it easier to do more complex fuses.