fix for proper __extends__ setting when a ComplexModel subclass gets customized