Gc improvements

This fixes a bug in the GC implementation and supplements it with the functionality that I need to get the GC parts of the OpenDylan runtime compiling with emscripten.

I removed adding ``realloc`` to ``EXPORTED_FUNCTIONS`` as you'd seen in an earlier bug as I didn't see why it was needed and everything works fine in the tests without it.