Fixed CDM format was not writing the last rows to the file.
When remapping identifiers to the data file, automatically remove rows and columns that has been removed from data file.