When an Array contains DBRef objects, use the $oid BSON::ObjectId  string value instead of the default string representation of DBRef which is not valid JSON. This is consistent with the conversion made for single DBRef values. This has been tested both with columns of JSON and TEXT ARRAY types.