Copy handling of legacy cuvette files with NaN headers from Mater branch.