Hash with compare_by_identity should not copy keys