C++ standalone: write arrays, works on win/linux, optimise mode option