plugin.api.validate: Handle old-style classes correctly.