Polyline Loop

Adds a new boolean property to `Polylines` that determines whether a line will loop (connect the first and last points). This is a special case because the joins between the segment connecting first and last points need to be mitered in the same way for the rest of the points.

Fixes #960.