improve default behaviour for new-array