Revert "Fix test failing to serialize DBRef entries"

This reverts commit f83b44ba4a9a79a8edacc8f84e78ae22ee8f946a.
This was not a good fix, as discussed in #42.