added checks for dummy index renaming and canonicalize_clifford()