Fix array declarations

After compiling, fixed a bunch of array declarations