Passing proper context object when validating arrays