Child relationship per_page fails with Strings

I ran into an issue when setting a child relationship's per_page as a String value. I was getting an error with limit_value in `if loaded? and size < limit_value and (current_page == 1 or size > 0)` in `ActiveRecord::RelationMethods::total_entries`.

Let me know if you need anything else.