fix Issue 9436 - enum cannot be forward referenced with cyclic imports and mixin
Merge pull request #1594 from 9rnsr/fix9436

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