Add `dir` field to `getParagraph`/`getParagraphByIndex`/`getLogicalRun`.

The directionality is derived from bit 0 of the level, as the docs for
`UBiDiLevel` specify.  Make this an explicit field in the result for the
convenience of users.