add spline_rep()/spline_eval() functions to allow spline interpolation with parameters