Round totals instead of ceiling in detailed reports
Fix JSON serialization error