Added test for serializing non-string key dictionaries.