deref_check, check_deref: only consider pointers