Added support for applying constraints on an array

Iterates the views in an array and updates/creates constraints