implement (de)serializing of Array[uint]