ir: Make FunctionSetType just contain a ref to FunctionSet.