- Copied the trick from imgui-rs to notice if a begin() is left
unmatched
- Changed plot_line to be a struct, but might go away from that
again. Initial idea was to add things like setting markers and
colors to this as struct methods, but it seems this will lead
to lots of code overhead compared to the pushing and popping
stylevars approach taken in the C++ implementation.