arrayseq monoid instance