fix(analysis): update to upstream changes in libstats

cc japaric/stats.rs#18
Merge pull request #32 from japaric/fix

fix(analysis): update to upstream changes in libstats