Fix test failing to serialize DBRef entries

I'm not certain if this change would have unexpected side effects, but the tests now pass.