FEAT: compiler internal separation of global context and symbol table. Fixes issue #374.