Implement Hash for atom type. This cannot be derived as it must provide

the same hash result as a string in order to work with find_equiv
in the HashMap type.