Add a transpose operation.
Set flags correctly on the result array.
Add reduction to the GpuArray object along with some tests.