fix bug in closure messing up cwrap (my fault)
Merge pull request #3052 from NWilson/ccall_fix

fix bug in closure messing up cwrap (my fault)