Favor Integer and Long over Double during serialization to BSON

I haven't even try to compile it, I have some dependencies issues with sbt.