Work around Firefox beta/canary worker transferable object bug.

This addresses issue #408.
Merge branch 'firefoxWorkerBug' into terrain