Shedding dynamics and mass exchange by dry granular waves flowing over erodible beds