Added support for pattern matching on atomic values.