Move typed array globals to builtin

Resolves #2