Allow arrays in targetSchema as per spec

Fixes #126