Minor codegen cleanup

* src/pf/codegen.lua: Minor cleanup.
More codegen-time CFG simplifications

* src/pf/codegen.lua: More minor CFG simplifications.
More conditional simplification

* src/pf/expand.lua: Rotate duplicate tests out of if expressions.