Fix absence of square brackets in literal syntax.
Ensure genSym'd names are unique with __ prefix.
Add call to initGlobalDecls in CG main.

This should be superseded by a context constructor, very soon.
Ensure shared_ptr in type signatures are qualified.
Fix incorrect capture semantics in lambda generation.
Fix swapped branches in case/of generation.
Fix initGlobalDecls return value.