Properly invalidating Polygon and Polyline.