fix: Inheritance problems in the ModelBase metaclass. (+ unit tests)