fixed issue with incoming connection instance when outer feature is a
feature array. Should only do it for index 1. Replication is dealt with
in pattern generator.
Merge remote-tracking branch 'origin/develop' into develop