Fix winding order detection for large polygons.

The trick to avoid atan2 calls fails for winding order detection in the
case where a counter-clockwise area strays into a positive quadrant
(similarly for a clockwise area straying into a negative quadrant).