replace StartOfArray() with std::begin (and EndOfArray wtih std::end) - and doc other possible changes todo