Add #where support for MemoryScope.

I would probably name the local variable `conditions`. It'll make more sense in the `#reduce` part.