ir: fix ParamSpec types