Implement Curve#getOffsetOf(point) / Path#getOffsetOf(point)

Closes #463.