Use GC.extend instead of GC.realloc and add assertions and memory access tests to GCAllocator.

See #470.