VariablesIdentifier: Use iterators (credits Pierre Lalet)