Adds a handy matchPatterns method to case macros.