[jiterator] stricter static_assert (#72576)
Summary:
* static_assert on `jiterator_stringify` usage in ROCm.
* static_assert for `complex<half>`
Pull Request resolved: https://github.com/pytorch/pytorch/pull/72576
Reviewed By: ngimel
Differential Revision: D34387640
Pulled By: mruberry
fbshipit-source-id: d58dbb062c9c301465b9b7e4a56ee3d64baaadf9
(cherry picked from commit 82d2a755191367d038ee27a312eeecc78b3dded9)