Some GC-related fixes for the asmjs JIT