Work in progress on table type

Work in progress on table type - some failing stub tests.