Implement some missing traits for SmallIntMap and TrieMap/TrieSet. 

Implements PartialEq/Eq/Clone/Hash/FromIterator/Extendable for SmallIntMap and Clone/Show for TrieMap/TrieSet. cc #15294