fix crash when deallocating sibling Element proxies that do not have a parent
prevent tree cycle creation when adding siblings
refactor some duplicated code
changelog