A fresh look at ensembles: Derivative discontinuities in density functional theory