Added GC_apply_to_each_object() function.