Add assert in VariableNames::setName() to avoid invalid access to vector.
Create structures for all atoms in the atoms table, not just the first.