Statistical gamma-rays and the angular-momentum alignment in heavy-ion collisions