remove equality constraint from the type of values stored in PersistentHashMap
use ReferenceEquals to compare objects