Ported Polygon->is_valid() and ExPolygon->is_valid()