Use structs rather than 2-element arrays

Now that we've moved the definition of which repositories and observers
to work across when republishing documents further away from where
they're used, instead of passing around "magical" 2-element arrays, pass
around structs with reasonable attributes instead.