Fixed: map/reduce to get all doctypes
Fixed: the doctype list action (res is a magic object)
Fixed: map/reduce for doctype list was still broken
Fixed: tests