Improve check for closed polygons
This was failing on highway=* areas so far, treating them as (open) ways and badly messing up clipping as a result of that. This is visible in the old tiles as well, and affects both Marble's rendering as well as geometry reassembly.