Require command to be an array when the arguments attribute is used

fixes #6698