add basic code generation testing rig and 1st test.
Fixes #554
Merge branch 'args-as-templates' into 4.2.3-dev