Fix _nd_image.geometric_transform endianness bug

Fixes #4127.

* Add _geometric_transform python wrapper to do byteswapping if 'output'
  dtype does not have a native endianness
* Add a few tests with 'ouput' parameter + native and non-native
endianness dtype