Make sure we can store references between origins and snapshots
Our tests were incomplete, and didn't catch that the postgresql backend
wasn't able to store references from origins to snapshots (as there is
no origin
object type in the postgresql schema)