more simplifications and polishing to the  DictionaryCodec