Fix #2319 In `Model::__set` add check whether value is object