Add util class for scalar types.
Merge pull request #47 from square/jw/scalar

Add util class for scalar types.