make PolyLine use distance_to_segment_squared(), and add separate (null, for now...