Rewrite of SVG-path generation from Shape to use Segments not Pieces. Arc support added for SVG (but doesn't yet include the full circle case)