test/test_globals.rb cleanup:
* Removed unused code.
* Fixed all the warnings.
* Pass an empty string to 'print' so it doesn't print 'nil' in the middle of the test output.
test/test_io.rb: Fixed a warning ("syswrite for buffered IO").