Add helpers for getting scalar sizes of vector value types.
R600: Calculate store mask instead of using switch.