The generalized Kurepa hypothesis at singular cardinals