Properly calculating output extents for textblock.
Fixed shape hit testing aborting by shape flags.