Use a tuple of fragment and glyph indices as the index type for LineBoxes

Glyph indices are currently not tracked, once they are, they will allow us to implement faster line breaks in the future.
Add some debug assertions