Added generic constraint to "other" parameter in canConnect() in NodeConnector