Parse objectid

Fix for the recursive toJSON calling in base modella which was
converting `ObjectID`s into strings before the save method is called.

Setting `{type: ObjectID}` on an attribute will cause any string value
passed in to be parsed into an `ObjectID`.