change CModule::setModules for #3359

Allow CModule::setModules to merge configuration as described in #3359