Improve distribution fitting as described in ticket #1553 and 1675

http://projects.scipy.org/scipy/ticket/1553
http://projects.scipy.org/scipy/ticket/1675

This is also related to Tickets #1359 and #808:
http://projects.scipy.org/scipy/ticket/1359
http://projects.scipy.org/scipy/ticket/808