Fixes Issue 8892 - Better diagnostic for static array assignment.