not only compare hash values but also test for equality in FoldedSignal (so different values with the same hashes can be distinguished)