Fixed gathering values during indexing.

Too many and too long values were gathered; if no values were gathered,
the metadata would still report that the list of values was complete.
Added DocResults.intSum(docProp) to calculate sum of document property.

This allows us to determine the total number of tokens in a subcorpus,
for example.