Changes that supposedly will fix the select_all problem with Ruby 1.9

Ready to be live-verified.