MDL-46148 qtype_calculated: validate formulas everywhere.