#343 adjusted internal format to reflect the changes to internal format in BuildStatistics and also corrected an important typo for serializing BuildStatistics properly