Clear fields obj when removing
This fixes a bug where the gen_fields_cache could become invalid when the last ivar was removed. Also adds more assertions.
Clear fields obj when removing
This fixes a bug where the gen_fields_cache could become invalid when
the last ivar was removed. Also adds more assertions.