fixed BVH traversal when APPLESEED_FOUNDATION_USE_SSE is not defined (it is by default), plus small code simplifications.
added unit test for Mersenne Twister RNG.
collect and print SPPM photon tracing statistics.
rewrote code to silence static analyzers.