symbol.h: let is_ptr_type() take NULL pointers