Fix #43

Fix roboptim/roboptim-core#43

I also fixed `print` for Solver and SolverState (incremented an empty line at the end of the parameters), and added a unit test for SolverState.