v0.40-release: March 24, 2022

Maintenance release with minor bug fixes.