More refined contour comparisons in mergeSeries(), grouping overlapping polygons together