Attempt to placate MSVC at several code sites in the flang compiler
(not incl. tests) where it's producing some build-time warnings.
Also address some build problems with Clang 16.0.3 hit while testing.
(Will wait to see MSVC CI build results and confirm that warnings have
been reduced before merging, of course. I may need to iterate.)