Fix type of shuffle resulted from shuffle merge.

This fix resolves PR19730.