treat ActiveRecord::Relation as Array

This fixes the problem with Rails 4, where ActiveRecord::Relation is no longer recognized as Array, which gives problems when defining abilities with joins - see https://github.com/ryanb/cancan/issues/916