fix bug in Spline1D(::Vector, ::Vector, ::Vector) handling error code