Compile-time checked array indexing with enums