Fix getfield in codegen
Add field lowering pass to pipeline