Started work on parameterising function results.
Assorted CCCSP codegen updates.
Some more instance work, other minor changes.
Fixed some handling for result parameters.