only add the Json-Expression to the Exception if we're compiled in maintainer mode.
getQueryMultiplePlansAndExecutions: add optional debug facility which does trace output.
Test execute all optimizer generaten variations of the plans and compare all their results. Don't do this with Queries which we know that they will fail.