Fixed issue with bson type detection in c++ code