[loose parser] Make unclosed objects / lists span to the start of the next node

That way, whitespace at their end is considered part of them,
and Tern can recognize when the cursor is inside of them.