BUG: Test and fix array converson before transpose

When SwapAxes is called a base class array is needed or the
subclass might mess with the shape. Fixes the previously
not-working test and code