Fix an issue with qshifts on compound types