Add IBelongToARepository

As discussed in #574 and #665, here's an interface that allows access to an instance's corresponding `IRepository` for certain (non-standard) usage patterns.

TODO:

* [x] Add a meta test that the interface is only ever explicitly implemented
Let's take a moment of silence to reflect on all the good things POSIX has brought us :trollface: