Make the object iterator work on objcore and get rid of ims_obj.