Add indexby() to table.py.