inner sequences of documents are flattened into map with sequence values