Add array conversion on creating validator