Make sure the output of `textscan` is type double

`spline` was complaining because the types weren't matched.