Parentheses are now set properly when clicking the integrate / derivative button

Signed-off-by: Mark Kamsma <mark@markkamsma.nl>
Strongly optimised the functions to set the level or default height for an expression.
The function to invalidate the bounding box cache is also strongly optimised now.

Signed-off-by: Mark Kamsma <mark@markkamsma.nl>