Complete handling of tenant type id for tenant-specific tables

#452

This work implements proper tenant type data and metadata isolation for tenant-specific tables, allowing a single tenant to can declare multiple tenant-specific tables on the same base table.