Add test for when `checkTypeOfDomReferences = false` to ensure that we do not regress in behavior at any point. The desired behavior for this case is that the `TemplateTypeChecker` will honor the user's configuration and not produce symbols for the dom reference. PR Close #39539