simplify primitive array support a bit