fix ASSTagList methods and ASSLineContents:cleanTags() to properly handle global tags, of which only the first instance affects the state of a line.
Also provide facilities to reduce needless copying in the related functions and make use of that in cleanTags()