Factor out tupleGetitemInt.