PR commit for adding support for degree 1 curves

Stick to the vocabulary in use: `item_count` and `item_index`.

Make both variables const.