For the wasm-3.0 branch, the validation for the elem section states that the offset expression must be valid with type [i32]. I would have expected this to be a type matching the index type of the table.
Some of the test cases are generating i64 constants in this position when converted to binary using the interpreter, and based on the spec of the text format, I believe that is correct.