Fix bug triggering segfault in FFI callback.
Bump to 1.0.1.