Tweak trampoling and support code to run gc-integration tests on amsjs