Improve robustness of hash functions on recursive data.