added asserts to range of text list and block
Added debug function for attributed string