Bug fix in 2D credible intervals

Replace sum(pdf) with pdf.sum().