[clangd] Handle templates more consistently in type hierarchy
If the tree includes types derived from all specializations of
a template, do not misleadingly label the root node with the
name of a single specialization.
Fixes https://github.com/clangd/clangd/issues/507
Differential Revision: https://reviews.llvm.org/D86861