Generalized spectral form factors and the statistics of heavy operators