ArrayBuffer allocator, gc fixes.

Signed-off-by: katlogic <kat@lua.cz>