Made Heitz code more robust to boundary. Fixed a bug in PBRT DiffGeom