This pulls in a batch of bugfixes applied to master into the 21.04 release branch. Further bugfixes will be cherry picked. Conflicts: CMakeLists.txt