BUG: to_json didn't handle empty case
DOC: changelog mention
BUG: compute stats didn't handle empty table
DOC: changelog mention
Merge pull request #574 from wasade/issue_571

Issue 571