Expose alias key info in dumpState and update test_dispatch. (#44081)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/44081
Test Plan: Imported from OSS
Reviewed By: ezyang
Differential Revision: D23492794
Pulled By: ailzhang
fbshipit-source-id: 27a2978591900463bda2e92e0201c9fd719f9792