Update example config files.
Implement array validation

Fixes #3701
Python: implement support for marshalling arrays

Fixes #3858