Add __len__ to frame and table function wrappers

Also fix a bug in _TableFuncWrapper.columns. Fixes #55 and #56.