Fix and test for issue #237.
Modify _delta so it doesn't return unecessary ObjectId and/or DBRef fields to set