parser: Add array subscript tokenization

Signed-off-by: Michael Buesch <m@bues.ch>
listIndex: Add possibility to translate entries before compare

Signed-off-by: Michael Buesch <m@bues.ch>
compat: Add reduce()

Signed-off-by: Michael Buesch <m@bues.ch>
tests: Return failure, if one test failed

Signed-off-by: Michael Buesch <m@bues.ch>