refactorings and cleanups in the core rays vs. triangle tree leaves intersection routines.
added missing reference image.