Fix issue in Path#removeSegments() where curves are removed wrongly when start index is 0.

Closes #200.