Use findFirst instead of filter[...].head
Expand feature groups of the instance root to find external connections
- fixes #361
Added unit test for #361