Table fixes

A bunch of fixes that cover most of the bugs found at the table bug bash. This doesn't address the bugs related to tabs, so expect tables not to update and grouped_timeseries graphs to break.