rename "allocator" to "arrayFactory" and move to new array utils