Added unique.splineMatrix to checksplineMatrix