Model's 'updateAttributes()' does not apply setters

Currently the 'updateAttributes()' function is passing the received data as is for saving in the DB. This has the effect of having the data not being converted to their target types, e.g. foreign keys (e.g. for 'belongsTo' relation) are not being converted to 'ObjectId' for the mongo adapter.

This pull request fixes this issue.