autolink: try harder to find explicit links

resolveRef() gives up too quickly when asked to find an explicit link
with a simple name and it's not in the immediately containing scope.
Treat explicit links like those in see blocks and with explicit scope so
members and globals are found.