Refactor scoped blocks.
Allow setting just 1 scope on root keys without an array.
Update equality to check for cache pieces.