ENH: Inverted residual function uses UnivariateSpline to compute y-residual for x(y) function.