Use a growable buffer for globals.

Also allows more than 256.
Tweak docs a bit.