Use custom display name for functions if provided (also fixes script/callstack/1811)