Ya.. I think this would solve all cases.  Good suggestion. I can now see the importance of having null in side the Arrays.. I was not seeing it in terms of byte comparision where as looking only interms of arrays and its contents.
So two arrays
a, b, null, null 65,66,0,2,0,0
a.b, null  65,66,0,1,0,0
So here also the first one becomes bigger? In this one the nulls are not in the middle but at the end and still this works out, correct?  Do I need to do this in the current patch or in a different one?