Fix #476: globals() would return the wrong dict when a jitted function i...

...s called for the first time