Polylines now clear properly.
Adjust signature for polyline creation helper.