Update dict.c

add iter interface