Added condition for scalar types in glue code generator.