Added enum_array to wrap an array that is indexed by enums