Fix transposition of 2D array.
Fix implementation of array transposition.

Works for 3D arrays when all dimensions are equal.  Only the (0 <--> 1)
transposition works for general arrays.

If size1 == size3 (nrows == nslices), transposition also works.
More updates/testing of transposition.