AUI-1685 Clone cols/rows arrays when changing them

Using `concat` to clone the array, instead of A.clone, which deep cloned them.