Scope fix for hugeObject

This patch fixes a problem where hugeObject, once generated, would not persist in a worker past the onmessage handler. This results in bad results for the worker -> mainthread test.