The ability to use enums as index keys was removed before 1.0, we would like to add it back soon but this may require some design. cc @jdetter