Support boolean key in dictionary (#42833)
Summary:
Fixes https://github.com/pytorch/pytorch/issues/41449 .
Pull Request resolved: https://github.com/pytorch/pytorch/pull/42833
Test Plan: `python test/test_jit.py TestDict`
Reviewed By: zou3519
Differential Revision: D23056250
Pulled By: asuhan
fbshipit-source-id: 90dabe1490c99d3e57a742140a4a2b805f325c12