only check type for added documents to add query if provided as an array
Merge branch 'shieldo-remove_document_check' into develop (PR #296)