Disallow space after opening array square bracket and before closing.

Related to #9849, #10072