Value stats fixes

- fixes for converting from bytes
- toString() methods for stats
- writing stats to Footer
- unit testing for MAX/MIN_VALUE