[relate] add support for non-simple polygons