Minor fix and improvement when generating treeviews (class names for columns, spurious column)