Support links to types
Support links to types

Adding the check that `ref` is not None introduced a case where
`name_node` could be uninitialised, so we'll do that explicitly. We
also need to strip off any leading namespace components from the
actual link targets.

angus-g/sphinxcontrib-autodoc_doxygen