Bug finding fixes

Two commits to make bug finding easier. The extra functions to ffi_test have the required signature to provoke the bug in #1021. They can be used to make test cases later.

The FACTOR_DEBUG ifdef is there to make finding remaining references to the nursery after gc easier.