Work in progress on Table type.

Base all table functions on a Table type (currently just a type alias);
add a bunch of failing stub tests for proposed Table type.