fix #6870, hashing collections