Build enum map without mutable state

I posted our compiler problem to stack overflow and got a workaround. The general feeling, though, is that it's a compiler bug where the implicit view to convert the Java array isn't found: http://stackoverflow.com/questions/15354771/why-does-this-flatmap-fail