[bugfix] Allow complex nestings of component tensors and index sums
In some complex scenarios, indices were consumed on the first visit of an index sum expressions and were missing on later visits.
In some complex scenarios, indices were consumed on the first visit of an index sum expressions and were missing on later visits.