Added missing includes, and made sure curve creators cleared piecewise curve before creating new curve.
Fixed bug in CHIP curve creator where the wrong iterators were being used to create interior control points.