Started implementing codec for arrays of native structs