Added a frozendict class to util.