Implement MatchExpressions.

- Implements common MatchExpression operations as inlines.
- Provides tests for these.