Implement Refelct.Emit code generator

Improve test application
Refactor AST
Improve code generator output