ir: Add ExpReference pointer to FunctionSet, keep it up to date on resolution.