Add a method to set to null a subtree of states.