Fix arc length calculation to prevent extruding too much plastic on arcs