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