added FormulaElement::m_terminalElement that is a flag to indicate what the element cannot have hands (child element).