simplified element swapping in chains, added some else-constructs to the DeadAssignmentEliminator