Clearify that schema classes must inherit from JSAutoEncodedObject

Also add loop-safe that class is not nil, when iterating over
superclasses.