further optimized triangle ray intersection.
changed assert handler to only initialize itself if a debugger is attached.