Fixed leak of twin swing die value

Fixes #704. This pull request depends on pull request #707.

http://jenkins.buttonweavers.com:8080/job/buttonmen-blackshadowshade/133/