Parse array-type elements as arrays.
Do fs.writeFileSync on test, to avoid nasty errors.
Fixed header parsing.