More robust determination of the name of the base class with template parameters using the abstract syntax tree
This should also work with multiple template parameters.
CCBUG:397664