fix bounds checking in SingleBulbPhotonBeam, see #60