[JIT] Add modulelist indexing for integer literal (#29236)
Summary:
Allow indexing into modulelists for integer literals.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/29236
Differential Revision: D19583935
Pulled By: eellison
fbshipit-source-id: 24d54051422a69769dac5e82f3bf622ded2bd8a6