LUCENE-6962: fix simple text dim values: writer was missing newlines, and max was incorrectly returning min