Add local patch used for core.memoize to fix a reflection warning