What i wanted is to have a loop over the contents of the table, similar to the example with a matrix.
The Maple Help states as following in the "do" section.
When expr is a table, the order in which the entries are processed depends on the underlying storage order, which may not correspond to any natural order (such as numeric or alphabetic order).
A for...in loop can optionally have two loop variables. In this case, during each iteration of the loop, the first variable takes as value the index of the entry, or operand number of the operand. The second variable takes on the corresponding value.
Apparently the code above doesn't do what I intended, giving me both the index and the value.
The "entries" and "indices" solution seems to do the trick however.
It is possible to do the loop over "indices(x)" instead of x.