globaldecls now passed in JSON between syntax.py and cppgen.py