Add #where support for MemoryScope.

I would inherit from `ArgumentError` here instead.