Upgrade Cadence to 0.0.31.

Closes #196.