Write coverage statistics to json file

`hb.compile(tmpl)(stats)` ?