Add Object::new_attr_accessor and corresponding test