r2152 - countRefsOfType(), eq() and neq() functions are not necessary any more