Compile scalar types