Fix setting the class for an object address

The removed check for isAllowGC allows storing a object
class to an object using `bindExternalObjectToClass`.

The errors mentioned in the removed comment are already being
tested in `testObjectArray` and are fixed elsewhere.