[improvement] support building ticket queries from an array of pairs in addition to hashes (allowing one to use the same key in multiple constraints)