fix for the s2c to allow primitive types with names to be used directly, requested by richard