Optimization works, with segfault at end, but solution is not what we want.
We now print a (broken) serialization of the splines.