Support actual dictionaries for metadata in addition to string
representations of dictionaries.