Clarify links() docstring.
Make "overridden" needles take indirect inheritance into account. Ref bug 1030312.

Quit bucketting things by file. There was no point to that extra level, since qualnames are globally unique.