Add some documentation about globals in ffi docs

Closes #6756