Fix Model#toJSON returning the model's internal attributes instead of a copy of them