Support types implementing TextMarshaler and TextUnmarshaler