Swapping arrays to boost scoped arrays.

Also changing test to run correctly on mac build server.

Refs #5591