Working with objects in history / erasing and other fixes and tweaks