Implemented get_key_type in gdbm.c and memory.c.

Also removed printf statements in functions that were just there for
debugging.