change %o and %i references when saving, so they point to the actual index of the expression in the order the expressions appear in the file.