Function hash

Helper function for computing the hash of a basic type.

size_t hash(ValueT) (
  in ValueT value
);