Make getter for class a primitive

Will not have an indexable field in the object layout any longer. Might do the same for other things, to hide more of the VM details from the language.

Signed-off-by: Stefan Marr <git@stefan-marr.de>