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.
Merge pull request #52 from gferon/master

Extract ObjectId from DBRef arrays