Add resize_ parameter.
The resize() is called every time some restrict/prolong for an entity is called. This is a lot overhead when resize() is not trivial, in particular for e.g. the fallback PersistentContainerMap implementation. I propose to add a check to resize only when called for the first time during an adaptation.