add COMPACT flag to StringSerializer
add reallocate method to MemoryAllocator