[JIT] use python type resolver for all types (#39880)
Summary:
Follow up to https://github.com/pytorch/pytorch/pull/39269, use the python resolver for all type resolutions.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/39880
Reviewed By: jamesr66a
Differential Revision: D22008110
Pulled By: eellison
fbshipit-source-id: 4e62eb0867d79e7d45156f88d628a28fa1578b9e