Degenerated Lines and Surfaces
Polylines and Surfaces can degenerate because of application of PointVec::makePntsUnique(). The above method assigns points at close distance the same ID which may result in Polylines of length 0 or Surfaces of area 0. Related to that issue: adjacent points with identical ids should always be collapsed.