Globalscope

Fix to make sure we always set HMDAEngine in global scope so it's available to our engine when we define the code for parsed rules in new Function().