Rationalised local and global optimisations.
Fixes presentation of locally optimised code (ode view).
Much more elegant :-)