Add a trait implemented by geometries that can have a polyline representation.

This is the `ToPolyline` trait.
It has one method that outputs a `Polyline`.
The trait is not yet properly implemented for most geometries with a non-zero margin.