Adding failing Math.imul tests, and a fix.

Fixes #271.