Polygon: allow for rounding error in pixel overlap

The overlap with a pixel may have an area slightly in excess of unity
(e.g., 1.5e-8), due to rounding errors.  Guard the assert and the final
result against this.
Polygon: add simplify method

Simplifies polygon by removing wiggles.