Check for single polyline per input shape, add inShape attribute to points

Check that the input has exactly one polyline (aka LineString) per shape, which is our convention.

Add an attribute "inShape" for each point, identifying the shape (polyline) it came from; so that points can be reliably grouped into polylines in further processing.