Support rehash() in Hash.