Fix parsing issues in Term by writing splitByNonNestedChars()
Fixes lots of tests