Fix for cornercases where ppf and isf methods fails

This PR fixes  two problems as described in Ticket1131:
1) ppf method fails on array-like 'loc' or 'scale'
2) ppf and isf methods return wrong value at the boundary (p=0 or p=1)

See http://projects.scipy.org/scipy/ticket/1131