Compatibility with mongoid ~4.0.  Seralization of the _id results in an array of $oid=BSON:ObjectID, instead we just want the single BSON:ObjectID.  I am not sure if this solution will break older versions of mongoid, as I have not tested it.   tp