The 3D brush utility and the delete brush only considered segments,
so they did not handle single points. Fix by adding special cases for
single point curves, in one case by using the same position for the
first and last point of a "segment".
I noticed that the delete brush can delete points outside of the
brush radius in 3D mode, but currently I don't think that's an error
with the new code added here.