VS: Fix Fortran target type selection with RC sources
The Intel Fortran
.vfproj files do support both Fortran and the
Windows Resource compiler (
.rc) files. Prior to CMake 3.9 we did not
support that, but !643 (merged) accidentally enabled it.
It was then broken by !2913 (merged).
Restore support for Fortran+RC in VS projects and add a test case.
Fixes: #19002 (closed)