Deinterleave was mangling scalar expressions hidden inside vector ones.

These can occur, e.g. if you have a scalar condition in a vector select.