* Add smoke tests for folding ranges
* fix index out of bounds in foldingRanges
closes#801
For invalid syntax trees, zig's parser seems to return bogus data where
startToken > endToken, which then causes everything else to crash.
This seems like a deeper issue, which needs to be fixed "properly", but
let's just paper over it here.