fixed up inconsistencies with how _id fields were handled in checking for document equality.