fix Issue 9436 - enum cannot be forward referenced with cyclic imports and mixin