Fix scientific notation and unit comparison.

Scientific notation has been known to not work. Now the parser is tested
in at least a few cases.

Unit comparison was also completely broken (surprise!). I made it so the
exponents on units are actually checked. Noticed this when "N" and "J"
were supposedly equal.

Auditors: alex