Save column state of treewidgets
(cherry picked from commit b64d0d623d0545fa5322d55b50175985f74098ee)