Everywhere a sniff code or error message code is sourced from a ruleset, do case insensitive matching on the real sniff and error codes. This will allow for easier creation and maintenance of rulesets and will stop issues like #1909 from occurring in the future.