Allow cyclic relations to be mixed.

[ fix #2883 ]