Added previous parent to xtag property of elements to provide them on lifecycle.removed. Also added tet for this.