Table: fix the bug of refresh method in table widget

Closes gh-6698
Fixes gh-7090
Table: Fix line length in columntoggle code

Re gh-6698
Table: Add columntoggle refresh test

This adds tests for <HEAD~2>.

Closes gh-7086