Allow multiple belongs_to sets in a row with ids.

[ fix #3137 ]