Fix slicing for AtomicStructureAdapter and derived classes.