The "globalness" of preserved references depends on the implementation
of require/define, which is not a good thing. This commit fixes that
by getting the global namespace and putting a reference to preserved
nodes there.