Also memoize exceptions thrown by the memoized function.

This makes the values stored in the cache compatible with those of the memoizeasync module.
Allow specifying a custom cacheKeyPrefix.
Release 0.4.0.