Adds `.update(newElement)` and `.unmount()` and makes children reorders and composite type swapping work. Part of #7148.