Use all of the arguments in default memoize hasher. Fixes #575