Bug fixes of Ruby/Pango sample codes.

Some bugs in Ruby/Pango's sample programs  caused by various changes between Ruby-1.6 and 1.8/1.9. I'm still working on glyphstring.rb.