WIP on generating code for lambdas and closures