fix Issue 9888 - std.random.uniform!enum(generator) fails

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