fix boolean schema helper
add support for arrays