Fixed document equality: documents in different collections can have equal ids.