Make FFI functions private, and add tests to ensure that they're private.
Always defined attach_pfunc, don't worry about warnings.
Added remaining changes to CHANGES file.