minor improvement in the C language index printing (when the index range has only 2 indices)
improved assignment of dependents to iterations in pattern detection
minor fix in print(const std::set<Base>& s)