toString updated to consider doc_as_upsert if sent an array source (as UpdateDocuments setDocument does)