Fix for some of Bokeh DoF's bugs.

Appears to fix most of the bugs involving NPC's, Particles and transparency.