Fix BSON parsing to treat numbers larger than INT_MAX as doubles

Hi,

I had a case where ended up pushing large numbers into MongoDB, and they ended up squeezed into an int32_t. This patch adds a simple "If < INT_MAX" at the point where it decides to use an int or a double.

Tim