Meta bug collecting all issues where the result of a formula is displayed as #VALUE! in Excel.
All dependent bugs are fixed. There were 3 main categories of errors here: (a) incorrect Ptg operand class encodings (b) wrong choice of FuncVarPtg instead of FuncPtg (should depend on whether var-args or not) (c) problems with encoding of nested-if expressions