Fix bug in supercell. Refactor transformations to use mutable Structures.