scalaz friendly immutable array