issue #2789: Adds performance test for Map<K, V> and Dictionary.

Also improves performance for Map<K,V>::keys.