cppgen: added booleans to determine which globals are set
parser: removed atInit generation

We need it to be handled in the cpp codegen
cppgen: Fix up patchers, move initialization to initDecls