Update path.class.js

Modified path positioning, fixes svg 170, debian logo, change some errors in different errors.
Update arc.js

while investigating why some arcs fails, reduced the number of calls to math.sin and math.cos, not by that much.
Merge pull request #1415 from asturur/master

Update path.class.js