Add stat for lossless unique tracks, also calculate/store all stats at the same time always.

I also deleted some trailing whitespace from a few lines.