Use `arrayEach` for `baseClone`, `baseMerge`, and `transform`.
Ensure `resolver` provided to `memoize` is a function if it's truthy.