handle qualified types in doc links, fixing #799