Compute cached

I have a couple more things to do, but I think it is worth starting the review process on the new memoize scheduling directive.
Please add test for caching a scalar (zero-dimensional Func). This will also test cache from a stack address, which is nice to have too.