Prune superfluous array creation.