Partially fixed/implemented.
It works fine for copying and pasting templates.
It doesn't work if you undo a block removal, those blocks all forget their information.
Place down a storage chest, put a filter on it, remove the block -> press undo -> notice that the chest forgot its filter.
Same goes for undoing for larger build areas.
I could make a separate task about that so we could close this one, please put it on resolved then with a comment mentioning that and I'll do the rest.