WIP: enforce contiguous arrays to optimize construction