Fix an exponential-parsing bug.

Closes #677
Merge branch 'stable'