Currents along ring arms with quantum dots: Kondo and Aharonov–Bohm effects