Fixed some bugs in dict to dict conversions