New codegen module works

* src/pf/codegen2.lua: Update to fix syntax of generated code.