added `type` option for `GET /_api/document?collection=...`

Conflicts:
	CHANGELOG
removed hard-coded value
take compatibility settings into account even for async requests