Upgrade Cadence to 0.0.41.

Closes #229.