Implemented equality between Documents and DBRefs