Fix passing arrays to functions.