FIX: Layer adding bug.
When a Layer is added and undo is called, strange bug occured: after the undo-ing, if a new Layer is added, it won't show up. The history event is being created, but the layer itself - missing. That is now fixed.