Two minor cleanups in the stats code.