Simplification of memoize expected case
also specs the case mentioned by @jdalton in comments (great catch!)
Merge pull request #1679 from megawac/memoize

Simplification of memoize given no hasher