Support id(tablename). Fixes issue #75.