use cffi:foreign-pointer instead of (type-of (cffi:null-pointer))

I missed some other spots where (type-of (cffi:null-pointer)) was used.