Add support for collection-specific relations

Fair enough. I’ll try my hand at working with types more.

The issue with relations remains though. I also notice this feature request which may be what I’m looking for: Ability to limit the scope of a relation