BUG: Optimizers broken for full_output = 0.

Closes #2118. Might make a 0.6.2 necessary, though I'd wait for any other reports of this cropping up until I have the release process automatized a little more.
this looks very weird
why replace a simple attribute access with `map`, `lambda` and `getattr` (3 function calls to do the same thing) ?