Fix for issue #1579: extra comma when using CSVFile to save DenseFeatures