Add ipopt.mode in the list of parameters.

@jorisv 
This modification saves the mode in which the roboptim solver is, which can be useful to treat the data in the callback.
Since this is a modification that saves solver-specific data in the parameter map, I'd like to know if the syntax is correct.