Fix is_fundamental template for MSVC (#30959)
Summary:
Fixes https://github.com/pytorch/pytorch/issues/30932
Pull Request resolved: https://github.com/pytorch/pytorch/pull/30959
Differential Revision: D18891797
Pulled By: mingbowan
fbshipit-source-id: e6c36ee80065e66117873e768f86f507c48aaef1