Add hash method to W_Object