Improve C# LDAPi and XPathi rules
This MR reduces the false-positive rate of the C# LDAP injection and XPath injection rules by further constraining the types which the patterns operate on. See gitlab-org/gitlab#376055 (comment 1121757517) for more context.