Fixed a bug in pdf weights for OSL closures.
Merge branch 'master' into OSL
Fixed PR comments.
Merge pull request #549 from est77/OSL

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