Access the class through the singleton class superclass.

This ensures we always get the accurate class even if
`class` has been stubbed.