better metadata stats. docs_stats moved to pug.nlp.util.