fixed repeated configurations bug
fixed repeated configurations bug

wrong handling of exhausted subconfiguration generators led to
repeated visits to the same multi-element configuration

added some ifdef-enabled debug statements along the way

alexandrovteam/ims-cpp,alexandrovteam/ims-cpp,alexandrovteam/ims-cpp