TODO: @dannyroberts rightly pointed out that dict->list doesn't work in ES. Must treat lists as strings. (string=>list and list=>string is OK)