Add asserts to `test_delta_with_dbref_*`, instead of relying on exceptions
Fix `BaseDocument._delta` when working with plain ObjectIds instead of DBRefs