Fix #421: Consistent numbering for tree/table/text view items

Not sure if 1-based or 0-based makes more sense; conceptually result lists should probably be 1-based, but JS arrays happen to be 0-based.

For consistency, have changed the text view to be 1-based to match the table+tree item numbering.