Consistently store method view state.

When expanding a method from its label in the resource overview state,
its state was not persisted.