Remove unecessary use of TypeWithDict::typeInfo()
Commonality with code for ROOT6
Merge remote-tracking branch 'wmtan/RemoveUnnecessaryTypeInfoCalls' into avoid-merge
Merge pull request #7013 from ktf/no-6896

Do not merge #6896