Add debugging comment.
Mention error_pr in debugging comment.
Stop updating index_vars to point to the end of their index_var chain.

This seems to be a speedup, and also seems to simplify things.
Remove debugging comment.