Dynamics of run-and-tumble particles in dense single-file systems