Integrated copying of array dimensions