Fix array parsing (fixes #6)