Asserts that a value is an array, throws if not.
The capability key.
The value to check.
Label for error messages.
The value as an array.
Error if value is not an array.
Asserts that a value is an array, throws if not.