Add support for 'extends' option when generating using all-models