Re-implement Hash for SmallIntMap