fixed test issue
re-fixed bug : \closedcycle for 'smooth' plot handler accidentally used last control point rather than last coordinate.

This commit works for smooth and for special plot handlers like
quadratic spline.