fix ancient bugs in AlgorithmCiftiReplaceStructure with ROW, and getting old XML with series along column
fix bug with simultaneous read and write in NiftiIO