findRoot optimization and bugfix

and minor std.math cleanup
I read only few comments. Have we any draft (Phobos math Improvement Proposal)?