Adapt to the removal of roboptim::UserIntermediateCallback.

For now, only the vector of parameters is saved.