Gets the allocator and params from config.
allocator
params
config
a BufferPool configuration
a Allocator, or null
null
AllocationParams, or null
true, if the values are set.
true