Improve text performance: use QStaticText.size instead of QFontMetrics
Prepare the expression editor for supporting sub expressions
Add a few more error test cases to the expression parsing
Group expressions surrounded by [],{}, or () to improve performance

This comes at a possibly less useful parsing when the expressions are
incorrect.