Give better error message when an ffi call is missing type signature (fixes #390)