Flatten Nested JSON to CSV: Dot Notation and Arrays