Add functional tests for cascading

@pkozikow Some of them work!

The long list is a blacklist of known not-working tests. The commented out ones are the ones that work (14 out of 75). Looking at the errors, I think it's about half not-implemented and half parity differences with a couple legitimate errors. To enable a test, comment it out of the blacklist. Eventually this will be a small list of tests that still fail.

Also fixed a couple of bugs (one that I introduced by changing the param order for bake)