Remove unused properties
Fix #857 "Exception when renaming section"

- fix xforms-insert event when root element replaced
- an incorrect event here caused the id index to get out of sync