General cleanup of left over code from older versions of Blockly (mostly bits from other code generators, like the dar, js and python ones).