Fixed bug with undo and setvalue

oldVal was set to the value of the attribute `data-value`, which is of type string. Because of this undone nodes always had `data-value-type` string and thereby caused problems with the assessment of the exercise.