improve numerical stability of several distributions

Rewrite private `_pdf`/`_cdf` methods of several distributions to improve numerical stability in corner cases. Also stop stop silencing the floating-point warnings in the test suite, which is no longer needed.