Changes how memoize checks whether memoized hash results are in the dictionary. Adds mergeSealed to merge objects without running into problems with sealed values.