Add __getitem__ and __getattr__ to _TableFuncWrapper.