HPCC-10534 Optimize IF(PROJECT, PROJECT)

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
HPCC-10534 Add a debug option 'optimizeMax'
Merge pull request #5210 from ghalliday/issue10534

HPCC-10534 Optimize IF(PROJECT, PROJECT)

Reviewed-By: Jamie Noss <james.noss@lexisnexis.com>
Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>