I don't feel comfortable with indexing the keys, as we make an implicit assumption about their ordering. Breaking this would be trivial and hard to detect, especially as we don't have any proper testing methodology. I'd put in a `"type"` key and value, and then check that. Bigger hassle, but can save us some bug hunting in the long run. What say you @bcipolli?