Dispose system states when clearing tree, but do not touch invariant inp...