[REG2.064a] fix issue 10612 - ICE on using enum as hash key with mutual module imports

http://d.puremagic.com/issues/show_bug.cgi?id=10612