improve manual array to collection copy