move buffer pool logic to allocator, enable use by getArray/freeArray by default