Adds handling for slice objects to hash_any

Obtains a hash for a slice object by hashing tuple(slice.start, slice.stop, slice.step)