Add primitive array writer support