refine allocator policy in ByteArray