Fix linking with "any" to :ref: and :term: with non-lowercased targets.