added a ToXContent implementation to NodeStats