Objects: Exit event handlers may need the parent. Make sure that parent_storage() also works from exit event handlers. Fixes fatal "Shouldn't get an exception in destruct()." Also propagates the PROGRAM_HAS_C_METHODS flag on inherit.