Dead Time, Pileup, and Accurate Gamma-Ray Spectrometry