Various fixes (see comment)

Fixed:
* Automaton conflicts
* Escaped char in strings (ascii ones)
* Nested arrays
* Arrays ending with comma
* Date handling (actually not really fixed since I still parse it as string)

Also added various unit tests.