Simplifies the table iterators.

Adds the AsTable trait, which provides the as_table method to convert
any existing iterator into a table iterator (which can be used with
enumerate_2d).  Simplifies TableItems so that it can be used for both
mutable and immutable sequences.