Fix aggregation error on polygons with non-unique names