Add TTable support in subsampleTable + a bit of cleaning