Fixed a bug where using modulo x where x=0 would case a SIGFPE. Added a relevant test case.