Initialize variable-length arrays properly