fixed bug with undo+mark/edit

issue causing this was the copying of entrylist was a shallow copying,
so editing the entries themselves would edit the entries in all the
shallow copies.