Add base classes to info.json and generated externs

This ensures that the inheritance chain is intact, even if the base
class is not exportable.