Added support for persistent resources.
Fixed error with persistent resources (when an action requires A*A and !A is available, the action should be
enabled)