Added testcase for type constraint in ConstraintSpline.