Turned after_n_iterations into a class to allow
pickling.
made more stopping criterions serialisable
revamp of stopping criterions
added function to clean up info dictionaries
mathadapt.scalar is robust if floats are passed in