Add equals and hashcode to GlobalDocumentId