Added support for using dict as key, but Python's json library doesn't like it. Changes will be in here for future references.