Added code to clean light list and frame buffer.
Cleaned callback list in ArnoldAnimationPatch.
Fixed rerender().

It is guaranteed that a rendering will happen (maybe sometime in
the future) using the state at the moment rerender() called.
Merge branch 'chenxi' into tests