Improve distribution fitting as described in ticket #1553

http://projects.scipy.org/scipy/ticket/1553