Delian0

Results 2 issues of Delian0

```c++ std::string line1 = "test:\n"; std::string line2 = "- {a: 1}\n"; std::string line3 = "- {b: 2} \n"; //fails std::string line4 = "- [0, {c: 3}] \n"; //also fails std::string...

There's a bug which makes loading files potentially 2x slower. After reading the whole file into the buffer, the loop erroneously repeats, where the whole buffer is resized and reallocated....

In review