Fix TableInner handling.

There should be a better way of doing this, i.e. directly modifying
the value instead of the ugly reinsert.