Fix string representation of primitive types