DNN-6100 Partially fix issue in DictionaryExtensions to handle int value...

...s