Fixed erroneous implementation of getGridRectangle(lonLatRectangle) that was affected by round-off error (lead to vertical and horizontal stripes in output)