hashcode implementation for ParamSpec