Give Object and Reference an Onwer accessor

This reduces the need to carry around a pointer to the repository as
well as the objects.