Fix y extent and clipping of rectangles with negative y coord or inverted axes