Add support for 'missing' as a match key to support ordering on

missing match values, and fix a bug w.r.t. lowercasing match variable
names. Resolves #735.