Add util class for scalar types.