package: fix "ffi" dependency name
package: add "ref" and "ref-struct" as dependencies
package: remove "engines" section
test: add `global` mode test file
re-add removed `global.js` file

Inadvertently removed in 72976516fc335ace99a9a2b5ff8f45d2803c7acf.
Fixed global functionality