Add enum hashing

The non-existance of a hash method for enums seems to be an oversight when the hashes module was created.