Set length for all on-stack allocations.