fix globalScope altering in runtimelink modules; fixes test_runtimelink