Rely on native ArrayObject constructor instead of manual loop