fix nasty little bug in Module.ccall
Merge pull request #3028 from NWilson/ccall_fix

fix nasty little bug in Module.ccall