array_ref helper class encapsulates an array and length without ownership