better array transpose
extra transpose test for 3D arrays