Meteor mongo save/insert numbers are converted to string
<p>I just noticed that whenever saving anything in MongoDB using a predefined variable the data types are changed from Number and Boolean to String</p>

<pre><code>Orders = new Mongo.Collection("Orders");
Orders.update({_id:"12345"},{$set:{price:5.5}) //this works

var price = {price: 5.5};
Orders.update({_id:"12345"},{$set:price}); //this is not working anymore in the mongo collection price is saved as String "5.5" not as a number, same goes for Boolean values
</code></pre>

<p>Can anyone help me in what is going on recently? Changing the whole application to use the first approach is not a solution as I have thousands of updates generated by my code which worked perfectly before.</p>