Arrays are now recreated correctly when removeAttribute is called.