Fixes wrong indexing/calculation of tuple length, which made __remove() fail in some situations.
Closes issue cwi-swat/rascal#604.