added handling of value._id (String) being cast to ObjectId

Useful for the case where a document may have populated subdocuments. On update of the parent document the _id of the subdocument will be cast from a string to an ObjectId.