validate scalar types for math operators