Backport changes from SVGPathSeg polyfill
Backport changes from SVGPathSeg polyfill

https://github.com/progers/pathseg/commit/f940db56d2e285be4aacd1944c08a3b6c16b14c0
jarek-foksa/path-data-polyfill.js,jarek-foksa/path-data-polyfill.js