Enhanced unit tests for code generators to compile the generated code, load, instantiate, execute, and re-generate from compiled result.
Fixed a few issues discovered while running the enhanced tests.