Various ctf{convert,merge} fixes.