Add an option to support subclassing built-in models

/to @ritch @bajtos 

The PR adds an option to generate subclasses for built-in models.