Fix #233; treat ActiveRecord::Relation objects as arrays
Merge branch 'gh-233'