Support for different types in IDictionary collections.