Cleaned up implementation of mem.gc, got rid of some cruft in vector.