Fix #570 - Reversing a 3d axis should now work properly.

Just needed to check for flipped limits in certain places.