Fix #494 and do a little refactoring (introduce TablePanel)

This fixes #494.

Also, with #484 in mind, I pull a TablePanel class out of PnlAbstractTableAnalysis.