Ensure `_.memoize` throws an error if `func` is not a function.
Fix failing tests.