Modify hashCode and equals in ConnectionTarget

ConnectionTarget used the connected Output in its hashCode
algorithm which caused an infinite loop