[JIT] Add test for ignored class type property (#45233)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/45233
**Summary**
This commit modifies `TestClassType.test_properties` to check that
properties on class types can be ignored with the same syntax as
ignoring properties on `Modules`.
**Test Plan**
`python test/test_jit.py TestClassType.test_properties`
Test Plan: Imported from OSS
Reviewed By: ZolotukhinM
Differential Revision: D23971885
Pulled By: SplitInfinity
fbshipit-source-id: f2228f61fe26dff219024668cc0444a2baa8834c