fix Issue 13774 - Multiple definition of ...

- COMDEF symbols should set pickAny when being added to a library
Merge pull request #4187 from MartinNowak/fix13774

fix Issue 13774 - Multiple definition of ...
regression test for Issue 13774
Merge pull request #4188 from MartinNowak/fix13774

regression test for Issue 13774