scripting: C++ API: allow user to provide MarSystemManager
PlotSink: fix crash when no output file provided