attach finalisers to IORef instead of plain heap objects
Merge pull request #10 from luite/master

attach finalisers to IORef instead of plain heap objects