Fix #1515: Ensure polygons are closed