Convert `vivify` to Cadence.

See #375.