Bugfix: point names got lost

I think we need to carry over the point name from segment.onCurve instead of segments[-1].onCurve
Merge pull request #6 from fsi-jens/patch-1

Bugfix: point names got lost