add fieldByName utility function to TableType