Modified check to test size of flattened value of a variable.
Merge pull request #1874 from crobinsonut/uninit-array-error

Modified check to test size of flattened value of a variable.