[jit] infer RRef type as container type (#33369)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/33369
This PR add RRef type infer rule when we try to infer a type from a
pyobject, this allow script module attributes could contain a rref,
(i.e. List[RRefs] as a module attribute)
Test Plan: Imported from OSS
Differential Revision: D19918320
Pulled By: wanchaol
fbshipit-source-id: e5fd99c0ba5693b22ed48f0c0550b5e1dac89990