Fix table headers of treenode table

Unfortunately, the table layout got lost during my recent changes. This
commit fixes the table layout, makes filter as well as type restrictions
work again and also fixes some wrong selectors.

Closes #789.