Try to preserve U. F. O. control points a little better.

Output leading and trailing control points consistently, and stop purging control points when they are identical to end points.