nir/search: Introduce a src_is_type() helper for 'a@type' handling.