Fixed some attempts to modify ActiveRecord::Relation

These records were being modified in-place and the rows array
was not being used. This caused an "undefined method []= for 
ActiveRecord::Result" error when trying to dump with Rails 4.
Simple fix and tests pass.