[4.2] Improved Blade Compiler

Some blade compiler speed improvements and bug fixes based on the previous compiler pull requests. Hopefully less of an utter mess this time.