Fix uninitialised variables.
Use checked_fread during thread loading, too.
Merge remote-tracking branch 'origin/master' into vapour