fix some accuracy problems with arcLengthToParam for segments
Implement arcLengthToParam for SegTree, Trail', and Trail