fix(lib): adapt to upstream changes in stats.rs

See japaric/stats.rs#11