refactor slab writing in makePointer
do not emit the memory initialization into itself