For access connections, only create one even if bi-directional and set
the bidirectional flag.
For port connections, create separate instances for each direction.
Corrected isOpposite test to also include context.
Merge remote-tracking branch 'origin/develop' into develop