#32 fix warnings and clang-tidy issues everywhere

10 jobs for master in 7 minutes and 59 seconds (queued for 3 seconds)