Minor fix ensuring good values in output

invert_flags in collapse mode got unexpected values (not boolean)
for nonlinear transform