Faster implementation of fromJSONstat
Remove period
New implementation of toJSONstat
Test round-trip