TDictionary: fix TDictionary.add method