Improve array fields by switching encoding from (index,val) pairs to full array when it would use less bytes.