Serializing Array of Integer using AddObject causes exception

Referenced Google Groups topic:

https://groups.google.com/d/topic/restsharp/nAJEkfMc1jA/discussion

Nobody responded to me, so I figured I'd go ahead and create a pull request.