Significant refactor to expression validation and processing to support an advanced editor for calculations.