Extend array predicate

Allow predicates on the array itself and not only its contents.