Switched some stray arrays to MathDevice vectors