Enlarge the rx_data_index_t to uint16_t

The buffer size was increased to 512 bytes, which don't fit in the
uint8_t previously used.