Fix instance pdf methods at 0.

* add a check for the gamma distribution instance vs. static pdf method
* fix distribution instance pdf to allow 0.