Increase sizes of the string offsets from unsigned int to size_t,
since the string storage is longer than 4GB.

Increase MAX_ARTICLES and avoid having flatten_threads scribble if the
group is too long.