BUG: reset identity on legacy index pickles (GH8431)

closes #8431