Fix whitespace

Whitespace formatting problems are fixed to aid
reading of source.
Bugfix for rate-expression editor

Rate expression editor sometimes did not save edits if
by chance the original and final expressions evaluated
to the same value.