don't settype for null values

otherwise a boolean or int will be converted to false or 0