Little more legible to use dictionaries of lists instead of lists of pairs to encode a multimap. It is also more efficient, but the gain is neglible for the predicted amount of metadata per file.