Fix bad casts from bifurcated StringIO impl.
Merge branch 'jruby-1_7'

Conflicts:
	core/src/main/java/org/jruby/ext/zlib/JZlibRubyGzipWriter.java