fix ensure ffi function

following comments on #8 which appears to break things, pass `Nothing` and `Just` in as arguments to `ensure`.