WIP: Check reference counter in ISC_<*>_VALID macro

Merge request reports