Policy specific resources wrapper
Depending on the instance,
resources
can mean different things. InRulePolicy
it's an array of resources, but inSummaryPolicy
it's a hash mapping from rules to the resources.In order to fix the confusion here, I would like to introduce a new class wrapping it. I don't know how to name it yet, but it should carry the difference.