Added dict.c and associated tests.