pathgroup: fixes toSVG method