Fixes nested ability conditions in issue #859
treat ActiveRecord::Relation as Array