More rigorous checking of validity for mkForeign calls
Merge pull request #246 from bitlisp/ffi2

More rigorous checking of validity for mkForeign calls