Delete unused comments and fix others
Move 'dict' out of functions.
Refine and improved check code for SSS mats.
Refine and improved check code for scenelights with bidir integrator.