Add willDetach and didDetach hooks for CIDMapping objects