Fix leaks in _fastmath

Fix leaks in getRandomInteger and rsaKeyNew. If randfunc throws an exception
they both don't clean up properly.

Thanks to Andreas Stührk for helping me to debug these two leaks.