fix issue 10612 - ICE on using enum as hash key with mutual module
imports