Visits the link definition of the reference, or falls back to visiting the reference label if resolution fails.