Beta distribution is broken at the endpoints. Now fixed.

Just because log probability is NaN doesn't mean probability is.