Add basic toString implementation for connections and factories