Transforms TDictionary::find into a templated function.