Fix for WG TDF problem -- hanging with large #s of samples.  This fixes pushed computation of the wg data down a level, from TDFDataSource (one data source per track) to TDFReader (one reader per file).   -- Also, recovered some chr sort test functions accidentally deleted, not needed now but maybe later.