ac/nir: mark some arguments const