Fix find_or_(create|initialize)_by on scoped relations.

[ fix #2707 ]