Fix dangling reference when a reuse component is updated and had a port referenced within an allocation
Currently, only the references to the component itself are replaced while updating the component from the reuse library. However, contained ports can have references as well like being referenced as source or target in an allocation entry. These needs to be replaced as well to not result in dangling references.
Reproduce:
- Create AF3 project with a component architecture containing at least one component with at least one port.
- Generate a task architecture of this component architecture (to automatically have an allocation).
- Add the component to a reuse library.
- Update the component from the reuse library (don't need to have changes in the library, because also components identical with the original will be replacced)
- Check console and detect the error message "The feature '[...]' of '[...]' contains a dangling reference '[...]'"