Use std::begin / std::end instead of sizeof

Thanks to Kevin!
Merge branch 'orc/level3' into orc/level4