Allow rudimentary pattern matching on monomorphic UDTs.