add MarshalJSON() to StatKind type. pass tests
travis-ci: add travis-ci