Adds typed mkey existence condition

Adds a way to select entries for which a certain metadata key, with a certain type, exists, regardless of its value.

* [x] API support
* [ ] test coverage
* [ ] command-line support
* [ ] viewer support