[Refactoring] Rename Dsymbol::inTemplateInstance to isInstantiated

Because `inTemplateInstance` is too similar to `isTemplateInstance`.
fix Issue 10329 - Attributes not inferred for indirectly templated methods
Do not infer attributes for __xopEquals and __xopCmp