Differentiate scalar and row types.