The issue was that the size of `distances_along_curve` was wrong for cyclic curves. The fix increases the size by one for cyclic curves to account for the last segment length.
The issue was that the size of `distances_along_curve` was wrong for cyclic curves. The fix increases the size by one for cyclic curves to account for the last segment length.