Fix validating generator

```ruby
def valid_generator?(generator)
  # other conditions
  gen.superclass == AbstractGenerator
end
```

The above line only works for classes that directly inherit from `AbstractGenerator`. This patch allows any subclass of `AbstractGenerator` to be validated as a generator.