Fix crash if a dependent template-id was assumed to be a type but instantiates
to a variable template specialization.