Fix a few "Uninitialized scalar field" warnings

Fix a few warnings reported by Coverity.
None of these is critical, but making sure that class fields are
initialized can avoid heisenbugs.
Merge pull request #4777

8bdd287 Fix a few "Uninitialized scalar field" warnings (Wladimir J. van der Laan)