fixing const reference code generation for primitive types.