ensure contiguous arrays in map nodes