fix interaction of mixins and contracted classes