SVG: fix handling of smooth curves