Fix accidental use of global intArrayFromString
repl: Fix accidental use of window before it was defined
Add __len metamethod that gets .length