fixed issue with array_tools.rotate not wokring for non-square grids.