Support `links`-supplied `belongsTo`

Fixes #1328