curry `memoize` by default.

This allows a cache to be provided when using `memoize` as a decorator.