(#2771) - implement attachments=true for allDocs()