Make loading/saving of models with ObjectId primary keys work with ActiveRecord 3.x.