Swapping arrays to boost scoped arrays.

Also changing test to run correctly on mac build server.

Refs #5591
Merge branch 'feature/5591_cubic_spline_algorithms' into develop