added handling for input as output connections from a basevar with possibly multiple subvar inputs