Remove functions for getting the key,value list from the table.

Make the functions static in spellutil.c for future reuse.
Remove the tests.
Use a struct for generating the test hash table in the test driver
program.