Fixed a bug in pdf weights for OSL closures. Improved code.