Added support for pattern matching against an alias.