Avoid string comparisons when looking up tables.

Save a hash value in the table so we can do integer comparisons rather
than string comparisons.