Util/TrivialArray: use std::array

Gives us a real iterator class and some type safety.