Rewrote precedence for arithmetic.

It is less bad now, and more extensible. I no longer have to write individual rules for each precedence level. Joy!