make class Table newstyle (merge from mercurial)