Add support for inheriting a class with @Model definitions