Deprecate calling FFI::cast(), FFI::new(), and FFI::type() statically
Fix GH-9697: array_walk($ffiInstance, function () {}) crashes due to expecting mutable array