Implemented Kernel.#Hash for 2.0 mode.