This is to inform you about "malthe/chameleon#311": chameleon templates can have problems with nested repeat variables using the same name: the variables themselves have the correct value but the "meta information" accessible with repeat/var for an outer scope gets corrupted by an inner repeat variable var.
The situation is likely quite rare (otherwise, there would already have been an error report). But if it occurs the result may be confusing.