Make Paragraph.restyle more tolerant wrt. indices.

Fixes #39.