Serializes a value of type T to a string representation for command-line usage.
The string representation of the value, or null if the value shouldn't be included
The value to serialize