Fixed text layout problems for large blocks of NSAttributedString text