Improved support for internal actions:
   - Actions enclosed in [ ] are considered internal now.
   - Internal actions must not appear in restriction sets.
   - Internal actions caused by sync are now represented by the action name base of the pair of synced actions.