Fix out-of-order beam line elements bug
Fix out-of-order beam line elements bug

Fixed bug: If an element is deleted and that deletion is undone, the
undeleted element will be moved to the end of the element dictionary.
This will probably result in the beam line elements being written in the
wrong order on export, creating an invalid lattice file.

radiasoft/radtrack,radiasoft/radtrack