Custom selected fields in ActiveRecord queries are returned as strings - fix

Problem description: http://jira.codehaus.org/browse/JRUBY-6215

This pull request fixes it for MySQL, but it can be easily fixed for all engines.