Add math special case tests and general fixes

- Should cover special case inputs for most functions
 - Fixed a number of runtime panicking behaviour reliant on shift
   overflow/division by zero etc.
5bbec42a4eMarc Tiehuis committed on 6/20/2017, 11:10:22 AMparentc9fc8bd
37 files changedLine totals unavailable