Refactoring: merge 'textPath' handling into 'text'
Cleaned the code
Flatten children node text when handling 'tref' node
Apply rotations before handling white space on tail child
Fix tests