Made use of counted_term_t, almost certainly incorrectly and incompletely in some places, accompanied by SAMRSIs.
Removed unittest/ptr_bag.cc.
Removed env_checkpoint_t and env_gc_checkpoint_t and their uses.
Removed ptr_bag.hpp, ptr_bag.cc.