fix 3d arc length calculation (GH-96)