stat: moved statistics related decls into stat.h