Fix (2*a**(-2*x**2)) * (3*a**(2*x**2))

Fixes #50.

After the second patch (cbb27e954d494d8623c9c8a2b563821f03a77b80), the slowdown seems minimal.