Apply _list functions for _all_docs view. COUCHDB-1139