Add fixes for cz_{start,write} from upstream

But refuse to write the trial name into modifier_cd in observation_fact,
as done in transmartApp-DB/7262ea6d320eff. Not bringing that here because
it conflicts with functionality we want to introduce and anyway the trial
name is already on sourcesystem_cd.