Rework tuple_update() to support one-based indexed in Lua

See #347
Merge remote-tracking branch 'origin/tuple-update-one-based'
Tidy up a comment.