Manually implement Hash for SmallIntMap