Better new array handling