Replace arrays with vectors

Refs #10441