BUG: Value array goes to 4096 not 255.

The InitWriteField function was limiting matrix and vector number of elements to 255, even though 4096 values are supported by the data structure.