Enhanced unit tests for code generators to compile the generated code, l...

...oad, instantiate, execute, and re-generate from compiled result.

Fixed a few issues discovered while running the enhanced tests.
Is that approach supposed to work when building our .csproj files from VS and running the tests there? At first glance it doesn't look like it will work.