A previous fix to ngtsc opened the door for duplicate directives in the 'directives' array of a component. This would happen if the directive was declared in a module which was imported more than once within the component's module. This commit adds deduplication when the component's scope is materialized, so declarations which arrive via more than one module import are coalesced. PR Close #27462