Fixed #745 -- added Hash#compare_by_identity