Add atomic_stream_size_type.
Switch stats.cpp to using atomic_stream_size_type.
Add atomic_stats test.