hashOf: unable to compute hash of struct instance with toHash method, if this method cannot be called with this instance:
e.g. non-const toHash with const struct object