fixed ActiveRelation::__clone() to work with via relation