I have applied revision 1766, but I still get the warning. The function passes the test you added.
// Ignore functions whose object type has already reached refCount 0 as they are to be removed
if( func->objectType && func->objectType->GetRefCount() == 0 )
continue;
objectType is "Array", but objectType->refCount = 1