MINOR: dict: Store the length of the dictionary entries.

When allocating new dictionary entries we store the length of the strings.
May be useful so that not to have to call strlen() too much often at runing
time.
diff --git a/src/dict.c b/src/dict.c
index 777530a..c2580e1 100644
--- a/src/dict.c
+++ b/src/dict.c
@@ -36,6 +36,7 @@
 	if (!de->value.key)
 		goto err;
 
+	de->len = strlen(s);
 	de->refcount = 1;
 
 	return de;
@@ -43,6 +44,7 @@
  err:
 	free(de->value.key);
 	de->value.key = NULL;
+	de->len = 0;
 	free(de);
 	return NULL;
 }