Render structure tree with correct expand/collapse status.