Add failing test for unbound method repr on Python 3
Use __qualname__ for pretty reprs where possible.

Closes gh-5566
Merge pull request #5568 from takluyver/i5556

Use __qualname__ in pretty reprs for Python 3