check for ActiveRecord::Associations::CollectionProxy when serializing