added __tostring to wrapper tables, errors for table.* functions