Fix accessibility of PTYTextView

Support VoiceOver, Zoom and ZoomText for Mac.

More details in individual commit messages. Main focus was
to get the visual bounds working properly, and while at it,
I fixed a few other small things as well.