Now I understood it. The problem is that `AssociationRelation` should work like `CollectionProxy` and it is not. I fear we are missing some case here and they will look pretty similar in future, but I guess this code is fine for what we are trying to fix.