Combined hash for a map's entries.
int mapHash<K, V>(Map<K, V> m) => Object.hashAll(m.entries.map((e) => Object.hash(e.key, e.value)));