Adds support for case-matching against expressions.