BUGFIX: handling Vectors in getAllDocumentsByKey and getAllEntriesByKey