Validate builtin classes in tests, not at definition time.

Validation only makes sense when all the methods have been defined,
so it can't be done in def_class() any more, because of def_method().
Convert the reflection extension to def_method()